package com.apiauto.pojo;

import java.util.Map;

/**
 * PS:写入查询数据实体类
 * @author lkk
 *
 */
public class DBQueryResult {
	//查询语句编号
	private String no;
	//查询结果数据字典
	private Map columnLabelAndValues;
	
	public String getNo() {
		return no;
	}
	public void setNo(String no) {
		this.no = no;
	}
	public Map getColumnLabelAndValues() {
		return columnLabelAndValues;
	}
	public void setColumnLabelAndValues(Map columnLabelAndValues) {
		this.columnLabelAndValues = columnLabelAndValues;
	}
	@Override
	public String toString() {
		return "DBQueryResult [no=" + no + ", columnLabelAndValues=" + columnLabelAndValues + "]";
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((columnLabelAndValues == null) ? 0 : columnLabelAndValues.hashCode());
		result = prime * result + ((no == null) ? 0 : no.hashCode());
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		DBQueryResult other = (DBQueryResult) obj;
		if (columnLabelAndValues == null) {
			if (other.columnLabelAndValues != null)
				return false;
		} else if (!columnLabelAndValues.equals(other.columnLabelAndValues))
			return false;
		if (no == null) {
			if (other.no != null)
				return false;
		} else if (!no.equals(other.no))
			return false;
		return true;
	}
	
	
	
}
